package com.thoughtworks.wechatmoments.network;

import com.thoughtworks.wechatmoments.entity.TweetsEntity;
import com.thoughtworks.wechatmoments.entity.UserInfoEntity;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.GET;

/**
 * desc   : api
 * author : guowenlong
 * Email  : guowenlong20000@gmail.com
 */
public interface Api {

    @GET("user/jsmith")
    Observable<UserInfoEntity> getUserInfo();

    @GET("user/jsmith/tweets")
    Observable<List<TweetsEntity>> getUserTweets();

}
